package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.Researcherinfo;
import com.ruoyi.system.api.factory.RemoteResearcherinfoFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 科研人员服务
 * **/
@FeignClient(contextId = "remoteResearcherService", value = ServiceNameConstants.PEOPLEGROUP_SERVICE, fallbackFactory = RemoteResearcherinfoFallbackFactory.class)

public interface RemoteResearcherService {
    @GetMapping(value = "/researcherinfo/researcherinfo/{researcherId}")
    public R<Researcherinfo> getInfo1(@PathVariable("researcherId") Long researcherId);

}
